/*
 * MainWindow.h
 *
 * Copyright 2014 raffaele <raffaele@casa>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 *
 *
 */

#ifndef MAINWINDOW_H_
#define MAINWINDOW_H_

#include <QMainWindow>
#include <iostream>
#include <QMessageBox> //message box
#include <QInputDialog> //input box
#include <QFileDialog> //show directory
#include <QDir>
#include "ui_mainwindow.h"
#include <fstream> //to create file
#include <cstdio> //to delete a file
#include <cstdlib> //to system call
#include <unistd.h> //to know current dir
#include <vector> //vector

using namespace std;

class MainWindow : public QMainWindow , private Ui_MainWindow{
	Q_OBJECT
public:
	explicit MainWindow(QMainWindow *parent = 0);

private:
	int sys;
	int ret;

public slots:
	void pro();
	void qmake();
	void make();
	void messageBox(QString title, QString question);
	void path();
	void fline(string name,vector<int> exc);
	void finsert(vector<string> line);
};

#endif /*MAINWINDOW_H_*/
